home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
001-100
/
001-025
/
009
/
proff
/
lookup.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-17
|
560b
|
31 lines
/*
* from K&R "The C Programming language"
* Table lookup routines
* structure and definitions
*
*/
/* basic table entry */
struct hashlist {
char *name;
char *def;
struct hashlist *next; /* next in chain */
};
/* basic table entry */
struct lexlist {
char *name;
int val; /* lexical value */
int flag; /* optional flag val */
struct lexlist *link; /* next in chain */
};
#define HASHMAX 100 /* size of hashtable */
extern struct
lexlist (*(*lextable))[];/* global pointer for lexical analyser hash table */